#pragma once


class CPubUdpClient
{
public:
	CPubUdpClient(void);
	~CPubUdpClient(void);

protected:
	SOCKET m_sckClient;

public:
	int Close(void);
	int Write(char* buf, int len, const char* host, u_short port );
	int Read( char* buf, int len, sockaddr_in* lpAddr  );

	int Open(void);
	int IsOpen(void);
	int IsReadable( int timeout = 2000 );

	SOCKET GetSocket(void);

};
